package com.site.service;

import com.site.pojo.Receive;

import java.sql.Timestamp;
import java.util.List;

/**
 * 入库表事务接口
 */
public interface ReceiveService {
    /**
     * 货物入库
     * @param receive
     * @return
     */
    boolean addReceive(Receive receive);

    /**
     * 查询所有
     * @return
     */
    List<Receive> getAllReceive();

    /**
     * 通过id删除入库单
     * @param rid
     * @return
     */
    boolean deleteByrid(Long rid);

    /**
     * 按入库单编号查询
     * @param number
     * @return
     */
    Receive seleteByNumber(String number);
}
